package com.linln.modules.message.service;

import com.linln.modules.message.domain.MessageRefund;

import java.util.List;

public interface MessageRefundService {
    /**
     * 阅读消息
     * @param refundId
     * @return
     */
    public Integer readMessage(Long refundId);

    /**
     * 查询所有未读信息
     * @return
     */
    public List<MessageRefund> selectUnreadRefund(Long memeberId);

    /**
     * 查询所有信息
     * @return
     */
    public List<MessageRefund> selectAllRefund(Long memeberId);

    /**
     * 查询所有信息
     * @return
     */
    public List<MessageRefund> selectAllRefund(Long memeberId,Integer type);

    /**
     * 添加消息
     * @param messageRefund
     * @return
     */
    public Integer saveMessageRefund(MessageRefund messageRefund);

    /**
     * 查询是否有未读消息
     * @return
     */
    public Integer hasNoRead(Long memeberId);
}
